<template>
  <div id="app">
     <router-view v-if="IsRouterAlive"></router-view>
  </div>
</template>

<script>


export default {
  name: 'App',
  provide(){
    return{
      reload:this.reload
    }
  },
  data(){
    return{
      IsRouterAlive:true
    }
  }, 
  methods:{
    reload(){
      this.IsRouterAlive=false;
      this.$nextTick(function(){
        this.IsRouterAlive=true;
      })
    }
  }
}
</script>

<style lang="stylus" rel="stylesheet/stylus">
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

</style>
